﻿using Inovout.Data.Domain;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace Inovout.Organization.Domain
{
    partial class OrganizationUnit : DataObject
    {


        [Required(ErrorMessage = "机构名称不可为空")]
        [Alias("机构名称")]
        public virtual string Name { get; set; }
        public virtual string DepartmentId { get; set; }
        //public virtual string DepId { get; set; }
        private ISet<Employee> employees = new DataObjectSet<Employee>();
        public virtual ISet<Employee> Employees
        {
            get { return employees; }
            set { employees = value; }
        }
        public virtual Employee Manager { get; set; }
        public virtual string NamePath { get; set; }
    }
}
